<?php
class model_bjarneCalculator{
    
    private $data = array();
    
    public function getResult(){
        return $this->data;
    }
    
    public function __construct($data) {
        $this->data = $data;
        $this->calculate();
    }
    
    private function calculate(){
        if ($this->data['navn'] == "Rasmus Jensen"){
            $this->data['alder'] = 36;
        }
        if ($this->data['navn'] == "Rasmus ÆØÅ"){
            $this->data['alder'] = 117;
        }
    }
    
    
}